package com.entity;

/**
 * Created by Administrator on 2017/3/16.
 */
public class Recruitment {
    private int id;
    private String post;
    private String department;
    private int neednumbers;
    private int wage;
    private String publishdate;
    private String dateline;
    private String content;
    private String examtype;
    private String requirement;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public int getNeednumbers() {
        return neednumbers;
    }

    public void setNeednumbers(int neednumbers) {
        this.neednumbers = neednumbers;
    }



    public int getWage() {
        return wage;
    }

    public void setWage(int wage) {
        this.wage = wage;
    }

    public String getPublishdate() {
        return publishdate;
    }

    public void setPublishdate(String publishdate) {
        this.publishdate = publishdate;
    }

    public String getDateline() {
        return dateline;
    }

    public void setDateline(String dateline) {
        this.dateline = dateline;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getExamtype() {
        return examtype;
    }

    public void setExamtype(String examtype) {
        this.examtype = examtype;
    }

    public String getRequirement() {
        return requirement;
    }

    public void setRequirement(String requirement) {
        this.requirement = requirement;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Recruitment that = (Recruitment) o;

        if (id != that.id) return false;
        if (neednumbers != that.neednumbers) return false;
        if (wage != that.wage) return false;
        if (post != null ? !post.equals(that.post) : that.post != null) return false;
        if (department != null ? !department.equals(that.department) : that.department != null) return false;
        if (publishdate != null ? !publishdate.equals(that.publishdate) : that.publishdate != null) return false;
        if (dateline != null ? !dateline.equals(that.dateline) : that.dateline != null) return false;
        if (content != null ? !content.equals(that.content) : that.content != null) return false;
        if (examtype != null ? !examtype.equals(that.examtype) : that.examtype != null) return false;
        if (requirement != null ? !requirement.equals(that.requirement) : that.requirement != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (post != null ? post.hashCode() : 0);
        result = 31 * result + (department != null ? department.hashCode() : 0);
        result = 31 * result + neednumbers;
        result = 31 * result + wage;
        result = 31 * result + (publishdate != null ? publishdate.hashCode() : 0);
        result = 31 * result + (dateline != null ? dateline.hashCode() : 0);
        result = 31 * result + (content != null ? content.hashCode() : 0);
        result = 31 * result + (examtype != null ? examtype.hashCode() : 0);
        result = 31 * result + (requirement != null ? requirement.hashCode() : 0);
        return result;
    }
}
